package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.NewsAdvertisementMapper;
import com.base.po.voip.NewsAdvertisement;
import com.base.po.voip.NewsAdvertisementExample;
import com.base.service.NewsAdvertisementService;
import com.base.utils.Page;

@Service("newsAdvertisementService")
public class NewsAdvertisementServiceImpl implements NewsAdvertisementService {
	@Autowired
	private NewsAdvertisementMapper newsAdvertisementMapper;

	@Override
	public int countByExample(NewsAdvertisementExample example) {
		
		return newsAdvertisementMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(NewsAdvertisementExample example) {
	
		return newsAdvertisementMapper.deleteByExample(example);
	}

	@Override
	public int insert(NewsAdvertisement record) {
		
		return newsAdvertisementMapper.insert(record);
	}

	@Override
	public int insertSelective(NewsAdvertisement record) {
		
		return newsAdvertisementMapper.insertSelective(record);
	}

	@Override
	public List<NewsAdvertisement> selectByExample(NewsAdvertisementExample example) {
		
		return newsAdvertisementMapper.selectByExample(example);
	}

	@Override
	public NewsAdvertisement selectByPrimaryKey(String id) {
		
		return newsAdvertisementMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(NewsAdvertisement record, NewsAdvertisementExample example) {
		
		return newsAdvertisementMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(NewsAdvertisement record, NewsAdvertisementExample example) {
		
		return newsAdvertisementMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(NewsAdvertisement record) {
		
		return newsAdvertisementMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<NewsAdvertisement> selectByParentid(Page page, String parentid) {
		
		return newsAdvertisementMapper.selectByParentid(page, parentid);
	}

	@Override
	public int countByParentid(String parentid) {
		
		return newsAdvertisementMapper.countByParentid(parentid);
	}

	@Override
	public List<NewsAdvertisement> selectByParentId(String parentid) {
		
		return newsAdvertisementMapper.selectByParentId(parentid);
	}

	@Override
	public List<NewsAdvertisement> selectByAll(String parentid) {
		
		return newsAdvertisementMapper.selectByAll(parentid);
	}

	
}
